/*
 * @Descripttion: your project
 * @Author: Jerry
 * @Date: 2023-04-10 10:23:42
 * @LastEditors: Jerry
 * @LastEditTime: 2023-04-10 15:23:42
 */

/*
* taskManageApi  模块api
* */
let pieAuth = piecloud ? piecloud : "";
export default {
     produceType:pieAuth+"/sthx_server/system/dict/api/getAllChildByDictCode?dictCode=productType",
     detatilQuery: pieAuth + "/sthx_server/task/taskDetails/api/v1/query",
     isExit: pieAuth +'/sthx_server/system/fileInfo/api/isExit',//+ "/file/system/manage/api/v1/resource/isExit", //判断文件是否可以下载
     downLoad: pieAuth + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/",
     queryInfoByWorkFlowId: pieAuth + '/sthx_server/task/taskDetails/api/v1/queryInfoByWorkFlowId/',
     batchUpdateStatus: pieAuth + '/sthx_server/task/taskDetails/api/v1/batchUpdateStatus/',
     updateTask: pieAuth + "/sthx_server/task/taskDetails/api/update/",
     loglist: pieAuth + "/api/v1/log/list", //任务日志
     deleteTaskDetail: pieAuth + "/sthx_server/task/taskDetails/api/v1/delete",
     childTaskWorkFlow: pieAuth + '/coordinator/workflow/',
     updateStatus: pieAuth + "/sthx_server/task/taskInfo/api/v1/updateStatus",
     taskDetailsUpdateStatus: pieAuth + '/sthx_server/task/taskDetails/api/v1/updateStatus/',
     task: pieAuth + "/watcher/task/",
     getParamsPath: pieAuth + '/coordinator/task/',
     taskDetailResult: pieAuth + "/sthx_server/product/taskDetailResult/query/", //根据主任务id和产品结果类型查询任务结果
     downloadReport: pieAuth + "/sthx_server/product/taskDetailResult/downloadReport?paths=",
     statistical: pieAuth + "/sthx_server/task/taskDetails/api/statistical",
     getTree: pieAuth + "/dev/account/api/organization",
     dataType: pieAuth + "/sthx_server/system/dataType", //查找卫星传感器关联信息
     exportResult: pieAuth + "/sthx_server/task/taskDetails/api/exportResult",
     updateTaskPriority: pieAuth + "/sthx_server/task/taskInfo/api/update/",
     query: pieAuth + "/sthx_server/task/taskInfo/api/v1/query",

     queryByDataName: pieAuth + '/sthx_server/task/taskInfo/api/v1/queryByData',//通过 数据名称查询

     delete: pieAuth + "/sthx_server/task/taskInfo/api/v1/delete/",
     modifyAppointmentTime: pieAuth + "/sthx_server/task/taskInfo/api/v1/update/appointmentTime/",//修改主任务的预约时间
     queryAlgoRunningStatus: pieAuth + "/watcher/task/getK8JobInfosByTaskInfo/",//查询算法运行状态
     modifyTimeFlag: pieAuth + "/sthx_server/task/taskInfo/api/v1/update/appointmentTimeFlag",//是否可修改任务的预约时间

     getDetailProductFileByChildId: pieAuth + '/sthx_server/product/taskDetailResult/getDetailProductFile/', //根据子任id获取产品路径
     getTaskProductFile: pieAuth + '/sthx_server/product/taskDetailResult/getTaskProductFile/', //根据主任id获取产品路径
     reRunPartFailed: pieAuth + '/coordinator/workflow/rerun',//部分失败任务重试
     reRunWorkflow: pieAuth + '/sthx_server/task/taskDetails/api/v1/rerun/workflow',

     //风险监测
     getAllChildByDictCode: pieAuth + "/sthx_server/system/dict/api/getAllChildByDictCode",//扫描间隔
     queryCopy: pieAuth + "/sthx_server/task/api/autoTask/query",//数据
     updateStatusCopy: pieAuth + "/sthx_server/task/api/autoTask/updateStatus",//更新数据,   启用 / 暂停 -->id不同
     deleteCopy: pieAuth + "/sthx_server/task/api/autoTask/delete",//删除表格数据
     fileRootPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getRootDir/",//根目录获取
     disasterTypeAll: pieAuth + "/sthx_server/task/disasterCategory/queryAllDisaster",//获取灾种类型
     disasterQueryProductions: pieAuth + "/sthx_server/task/disasterCategory/queryProductions/",//获取产品类型
     createCopy: pieAuth + "/sthx_server/task/api/autoTask/create",//创建新任务getFileListByPath
     getTreeCopy: pieAuth + "/coordinator/metadata/workflow/groupTree",//获取左侧树
     searchCopy: pieAuth + "/coordinator/metadata/workflow/search",//查看所有流程
     searchProcessParametersCopy: pieAuth + "/sthx_server/task/processParameters/search",//
     productLineQueryCopy: pieAuth + "/coordinator/metadata/workflow/",
     sourceCopy: pieAuth + "/sthx_server/task/api/taskSource/query",
     getFileListByPathCopy: pieAuth + "/sthx_server/system/fileInfo/api/v1/getFileListByPath",//二级目录
     updateDefalutCopy: pieAuth + "/sthx_server/task/autoFlowParameters",
     browserRefPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getCoordinateSystem",//空间参考浏览接口
     updateCopy: pieAuth + "/sthx_server/task/api/autoTask/update",//编辑数据
     getParam: pieAuth + "/sthx_server/task/autoFlowParameters/search",
     //HJ2A/B数据匹配环境任务接口
     queryTask: pieAuth +"/sthx_server/autoTask/scheduleTask/query",//查询任务
     createTask:pieAuth +"/sthx_server/autoTask/scheduleTask/create",//新增任务
     deleteTask:pieAuth +"/sthx_server/autoTask/scheduleTask/delete",//删除任务
     updataTask:pieAuth +"/sthx_server/autoTask/scheduleTask/update",//编辑任务
     //应急任务  接口
     disasterTaskQueryAll: pieAuth + "/sthx_server/task/disasterTask/queryAll",//查询所有流程    属 应急监测
     regionQueryProvince: pieAuth + "/sthx_server/task/region/queryProvince",//查询所有省份
     disasterTaskSave: pieAuth + "/sthx_server/task/disasterTask/save",//创建应急任务
     disasterTaskDelete: pieAuth + "/sthx_server/task/disasterTask/delete/",//删除应急任务
     disasterTaskUpdate: pieAuth + "/sthx_server/task/disasterTask/update",//终止任务
     disasterTaskCreateEvent: pieAuth + "/sthx_server/task/adapter/createEvent",//创建任务的对应事件  天眼系统没有事件时用
     

     // 行政区域接口
     regionQueryCityByProvince: pieAuth + "/sthx_server/task/region/queryCityByProvince/",//城市
     disasterTaskIdQuery: pieAuth + "/sthx_server/task/disasterTask/query/",//通过id查询
     regionQueryAreaByCityCode: pieAuth + "/sthx_server/task/region/queryAreaByCityCode/",//获取县
     queryRelated: pieAuth + "/tool/satellitesensor/queryRelated",//查找卫星传感器关联信息
     queryflowProperty: pieAuth + "/sthx_server/task/flowProperty/api/query",//流程选择 获取流程
     queryAssociateDataByDisasterTaskId: pieAuth + "/sthx_server/task/disasterTaskAssociate/queryAssociateDataByDisasterTaskId/",//数据清单
     deleteCopySecond: pieAuth + "/sthx_server/task/taskInfo/api/v1/delete/",
     queryCopySecond: pieAuth + "/sthx_server/task/taskInfo/api/v1/query",//任务数据
     updateDefalut: pieAuth + "/sthx_server/task/autoFlowParameters",

     // 减灾区域结果查询、添加、删除相关接口
     addAssociateArea: pieAuth + "/sthx_server/task/disasterTaskAssociate/addAssociateArea",//添加关联区域到数据库里
     queryAssociateArea:pieAuth + "/sthx_server/task/disasterTaskAssociate/queryAssociateAreaByDisasterTaskId/",//+disasterTaksId
     deleteAssociateArea: pieAuth + "/sthx_server/task/disasterTaskAssociate/deleteAssociateArea/",//+区域结果ID
     //数据查询
     queryDataList: pieAuth + "/sthx_server/task/disasterDataManageAssociate/dataQuery",
     //产品生产
    productProduction:pieAuth + "/sthx_server/task/disasterTask/trigger",
    // 减灾重点区域接口
    disasterImportRegionQuery: pieAuth + "/sthx_server/task/keyArea/queryAll",
    
    getFileListByPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getFileListByPath",//子文件浏览接口
    
    //减灾输入矢量文件接口
    disasterShpFileQuery: pieAuth +"/sthx_server/task/keyArea/queryGeoJsonByFile",
    queryFeature: pieAuth + '/api/v3/dataEngine/featureCollection/queryFeatureByQueryParameter',//定位省份
    queryFeatureBase64:pieAuth + '/api/v3/dataEngine/featureCollection/queryFeatureByCompose',
    //根据数据ID查询数据详情
    queryDataByDataId: pieAuth + "/sthx_server/task/disasterDataManageAssociate/dataDetail/", //+DataId

    getScreenDataList: pieAuth + "/sthx_server/task/api/autoTask/query",//获取扫描任务
    //详情页目录数
    getTreeDataList: pieAuth + "/sthx_server/task/riskTaskAssociate/queryAssociateData",
    //风险查询任务关联数据
    queryAssociateDataById:pieAuth + "/sthx_server/task/riskTaskAssociate/queryAssociateDataById/",
    //手动执行
    handPerform: pieAuth + "/sthx_server/task/riskTaskAssociate/updateRiskTaskTime/",
    //定期风险任务编辑
    updateTaskRegularRisk: pieAuth + "/sthx_server/task/api/autoTask/update/",
    //风险任务列表查询
    riskTaskQuery: pieAuth + "/sthx_server/task/riskTask/queryAll",
    //风险任务id查询
    riskTaskQueryId: pieAuth + "/sthx_server/task/riskTask/query/",
    //风险任务添加基础地理数据
    addBasicGeoData: pieAuth + "/sthx_server/task/riskTaskAssociate/addBasicGeoData/",
    //火点判读查询
    fireInterpretation: pieAuth + "/sthx_server/task/riskTaskAssociate/queryAssociateDataDetails",
    //火点判读更新
    updateFire: pieAuth + "/sthx_server/task/riskTaskAssociate/updateRiskTaskAssociateDataDetail",
    //更新风险任务
    riskTaskupdate: pieAuth + "/sthx_server/task/riskTask/update",
    //删除基础地理数据
    delBasicGeographic: pieAuth + "/sthx_server/task/riskTaskAssociate/deleteAssociateData/",
    //目录树删除功能
    riskDeleteTree: pieAuth + "/sthx_server/task/riskTaskAssociate/deleteAssociateData/",
    //批量目录树移除功能
    riskUpdateTree: pieAuth + "/sthx_server/task/riskTaskAssociate/updateAssociateData",
    //批量目录树移除功能
    riskUpdateTreeBatch: pieAuth + "/sthx_server/task/riskTaskAssociate/updateAssociateDataBatch",
};
